package com.carey.blog.framework.latke.util;

import java.text.DateFormat;

/**
 * Date utilities.
 * 
 */
public final class Dates {

	/**
	 * Private default constructor.
	 */
	private Dates() {
	}

	/**
	 * Gets current date time string with the specified date formatter.
	 * 
	 * @param dateFormat
	 *            the specified date formatter
	 * @return a date time string
	 */
	public static String currentDatetime(final DateFormat dateFormat) {
		return dateFormat.format(System.currentTimeMillis());
	}
}
